package com.yanqu.road.entity.cricket.court;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

/**
 * 分组匹配信息
 */
@FieldTypeAnnotation(tableName = "t_c_cricket_court_group_match_data")
public class CricketCourtGroupMatchData extends DataObject {

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "赛场id")
    private int courtId;


    @FieldTypeAnnotation(desc = "匹配分组id")
    private int matchGroupId;

    @FieldTypeAnnotation(desc = "跨服分组id列表， 分组id")
    private List<Integer> serverGroupIdList;

    @FieldTypeAnnotation(desc = "分组上限")
    private int groupLimit;

    @FieldTypeAnnotation(desc = "开服天数索引")
    private int serverOpenDayIndex;

    @FieldTypeAnnotation(desc = "更新时间")
    private long updateTime;


    public CricketCourtGroupMatchData() {

    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        if (this.round != round) {
            this.round = round;
            this.setUpdateOption();
        }
    }

    public int getCourtId() {
        return courtId;
    }

    public void setCourtId(int courtId) {
        if (this.courtId != courtId) {
            this.courtId = courtId;
            this.setUpdateOption();
        }
    }

    public int getMatchGroupId() {
        return matchGroupId;
    }

    public void setMatchGroupId(int matchGroupId) {
        if (this.matchGroupId != matchGroupId) {
            this.matchGroupId = matchGroupId;
            this.setUpdateOption();
        }
    }

    public List<Integer> getServerGroupIdList() {
        return serverGroupIdList;
    }

    public void setServerGroupIdList(List<Integer> serverGroupIdList) {
        if (serverGroupIdList == null) {
            return;
        }
        this.serverGroupIdList = serverGroupIdList;
        this.setUpdateOption();
    }

    public int getServerOpenDayIndex() {
        return serverOpenDayIndex;
    }

    public void setServerOpenDayIndex(int serverOpenDayIndex) {
        if (this.serverOpenDayIndex != serverOpenDayIndex) {
            this.serverOpenDayIndex = serverOpenDayIndex;
            this.setUpdateOption();
        }
    }

    public int getGroupLimit() {
        return groupLimit;
    }

    public void setGroupLimit(int groupLimit) {
        if (this.groupLimit != groupLimit) {
            this.groupLimit = groupLimit;
            this.setUpdateOption();
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if (this.updateTime != updateTime) {
            this.updateTime = updateTime;
            this.setUpdateOption();
        }
    }
}
